
	/*
	* Entourage
	* Copyright 2011 INF532@Galatasaray University & Vincent Labatut
	*
	* This file is part of Entourage.
	*
	* Entourage is free software: you can redistribute it and/or modify
	* it under the terms of the GNU General Public License as published by
	* the Free Software Foundation, either version 3 of the License, or
	* (at your option) any later version.
	*
	* Entourage is distributed in the hope that it will be useful,
	* but WITHOUT ANY WARRANTY; without even the implied warranty of
	* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
	* GNU General Public License for more details.
	*
	* You should have received a copy of the GNU General Public License
	* along with Entourage. If not, see <http://www.gnu.org/licenses/>.
	*
	*/
package com.appspot.entourage.databasemanager;

import javax.persistence.*;
import com.appspot.entourage.common.Person;


/**
 * This class is used as an extension of Person class, and allows to save it in DB
 * @author Yavuz BAYHANTOPCU <yavuz.bayhantopcu@gmail.com>
 * @version 1
 */
@Entity
public class PersonDB{

		private String fullname;
	@Id private String guid;
		private String url;
		private Boolean processed;
		private Integer distance;

		

		/**
		 * This class is the SuperConstructor of PersonDB
		 */
	public PersonDB(String fullname, String guid, String url) 
	{
		//super(fullname, guid, url);
		this.fullname = fullname;
		this.guid = guid;
		this.url = url;		
		this.processed = false;
		this.distance = 0;
	}
	
	/**
	 * Get method for Fullname of Person
	 * @return string of the name
	 * @author Yavuz BAYHANTOPCU <yavuz.bayhantopcu@gmail.com>
	 */
	public String getFullname()	{
		return fullname;
	}
	
	/**
	 * @param the Fullname to set
	 */
	public void setFullname(String fullname) {
		this.fullname = fullname;
	}
	
	/**
	 * Get method for guid of Person
	 * @return string of the guid
	 * @author Yavuz BAYHANTOPCU <yavuz.bayhantopcu@gmail.com>
	 */
	public String getGuid()	{
		return guid;		
	}
	/**
	 * @param guid the guid to set
	 */
	public void setGuid(String guid) {
		this.guid = guid;
	}
	
	/**
	 * Get method for url of Person
	 * @return string of the url
	 * @author Yavuz BAYHANTOPCU <yavuz.bayhantopcu@gmail.com>
	 */
	public String getUrl()	{
		return url;
	}
	/**
	 * @param url the url to set
	 */
	public void setUrl(String url) {
		this.url = url;
	}
	
	/**
	 * Get method for Processed of Person
	 * @return True or false of the Processed Person
	 * @author Yavuz BAYHANTOPCU <yavuz.bayhantopcu@gmail.com>
	 */
	public Boolean getProcessed() {
		return processed;
	}
	/**
	 * @param the processed to set
	 */
	public void setProcessed(Boolean processed) {
		this.processed = processed;
	}


	/**
	 * Get method for Distance from seed Person
	 * @return string of the name
	 * @author Yavuz BAYHANTOPCU <yavuz.bayhantopcu@gmail.com>
	 */
	public Integer getDistance() {
		return distance;
	}	
	/**
	 * @param the distance to set
	 */
	public void setDistance(Integer distance) {
		this.distance = distance;
	}
	
	
}
